package com.javabi.boardgame.game.chess;

import java.util.ArrayList;
import java.util.List;

import com.javabi.boardgame.game.chess.piece.ChessPiece;
import com.javabi.boardgame.model.status.IStatus;

public class ChessStatus implements IStatus {

	private final ChessPlayer player;
	private final List<ChessPiece> pieceList = new ArrayList<ChessPiece>();

	public ChessStatus(ChessPlayer player) {
		if (player == null) {
			throw new NullPointerException("player");
		}
		this.player = player;
	}

	@Override
	public ChessPlayer getPlayer() {
		return player;
	}

	public void addPiece(ChessPiece piece) {
		if (piece == null) {
			throw new NullPointerException("piece");
		}
		pieceList.add(piece);
	}

}
